/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-api
 * Create Time: 2016年1月29日 下午12:50:53
 */
package com.lenovo.lmrp.api.constant;

/**
 * @author songyz
 *
 */
public enum EngineerState {

	ONLINE(1), OFFLINE(0);
	private int state;

	private EngineerState(int state) {
		this.state = state;
	}

	public int getState() {
		return state;
	}

	public static EngineerState getEngineerState(int state) {
		for (EngineerState es : EngineerState.values())
			if (es.getState() == state)
				return es;
		return null;
	}
}
